const path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  baseUrl: '/uplus',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://47.105.161.41',
        changeOrigin: true
      }
    }
  },
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('assets', resolve('src/assets'))
      .set('components', resolve('src/components'))
      .set('views', resolve('src/views'))
      .set('data', resolve('src/data'))
      .set('utils', resolve('src/utils'))
  }
}